<%@ page contentType="text/html;charset=UTF-8" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<%@ include file="/common/hallimport.jsp" %>
<link href="${ctx}/css/hall.css" rel="stylesheet">
<link href="${ctx}/css/web_style.css" rel="stylesheet">
<script src="${ctx}/js/web/tab.js"></script>
<title>我的申请-竞价大厅用户中心</title>
</head>
<body>
<%@ include file="/common/halltop_my.jsp" %>
<!-- 开始 -->
<div class="my_window">

	<div style="margin:10px;">
	<form id="idList_form">
		<input type="hidden" name="page"  value="1">
		<input type="hidden" name="rows"  value="12" id="rows">
		<input type="hidden" name="methodKey"  value="itemIdList">
		<input type="hidden" name="userName"  value="${loginUser.userEname}">
		<input type="hidden" name="tag"  value="div" id="tag">
	</form>
	</div>
	<ul class="fltext" id="idList_div" style="width:100%;"></ul>
	<div id="idList_page" class="web_pages"></div>
        <script type="text/template" id="idList_div_html">
	     <? for ( var i = 0; i < rows.length; i++) {?>
			<li id="itli_<?=rows[i].itemId?>" class="it_box" style="width:30%;height:100px">
				<input type=hidden name=ids value=<?=rows[i].itemId?> >
                <input type=hidden id=incGroup_<?=rows[i].itemId?> value=<?=rows[i].incrementGroup?> >
                <input type=hidden id=incValue_<?=rows[i].itemId?> value=<?=rows[i].incrementValue?> >
				<input type=hidden id=dc_<?=rows[i].itemId?> value=<?=rows[i].decimalCount?> >
			<dl>
              <dt><a href="${ctx}/admin/hall/item/<?=rows[i].itemId?>"><img style="width:100px;height:100px" src="<?=strUtil.doNull(rows[i].picUrl,'${ctx}/images/def.jpg')?>"/></a></dt>
			  <dd>
                <h6><a onclick="gotohall('<?=rows[i].itemId?>');"><?=strUtil.subStr(rows[i].itemName,20)?></a></h6>
                <p>当前价：<span class="red" id=value_<?=rows[i].itemId?>></span></p>
                <a class="price_btn"id="quick_<?=rows[i].itemId?>"+ onclick=quick('<?=rows[i].itemId?>')>报价</a>
				<p>所在期：<span id=status_<?=rows[i].itemId?>></span></p>
				<p>报价次数：<span id=num_<?=rows[i].itemId?>></span></p>
              </dd>
            </dl>
			</li>
	   <?}?>   		
	</script>


</div>
<!-- 结束 -->
<%@ include file="/common/hallbottom.jsp" %>	
</body>
</html>

<script>

loginUser = "${loginUser.userEname}";//当前登录人
//查询提交
function idListSearch(){
	searchSubmit("hall","idList");
}

function gotohall(itemId,sessionId){
	var url="";
	if(itemId != 0){
		url=ctx+spaceDomain+"hall/item/"+itemId;
	}else{
		url=ctx+spaceDomain+"hall/session/"+sessionId;
	}
	//alert(sessionId);
	window.location.href=url;
}

//初始化加载
$(function(){
	//加载分页列表
	idListSearch();
	setInterval(myLoad,3000);
	
});

</script>

